#ifndef _DS_TEST_H
#define _DS_TEST_H

#include <stdio.h>
#include <stdlib.h>
#include "ds_types.h"

struct mydata{
	int value;
	char ch;
};

Bool visit(const void *e)
{
	struct mydata *q;
	q = (struct mydata *) e;
	printf("An Element : %d  ,  %c \n", q->value, q->ch);
	return TRUE;
}

int my_compare(const void *e1, const void *e2)
{
	struct mydata *m1,*m2;
	m1 = (struct mydata *)e1;
	m2 = (struct mydata *)e2;

	if(m1->value == m2->value && m1->ch == m2->ch)
		return 0;
	else if(m1->value > m2->value)
		return 1;
	else return -1;
}


#endif
